ffmpeg.git
2 years agoMerge ffmpeg (7:6.0-7) import into refs/heads/workingbranch
Sebastian Ramacher [Sun, 24 Sep 2023 06:47:33 +0000 (07:47 +0100)]
Merge ffmpeg (7:6.0-7) import into refs/heads/workingbranch

2 years agoavfilter/vf_libplacebo: remove deprecated field
Niklas Haas [Mon, 13 Mar 2023 13:33:16 +0000 (14:33 +0100)]
avfilter/vf_libplacebo: remove deprecated field

This has not been functional since a year ago, including in our current
minimum dependency of libplacebo (v4.192.0). It also causes build errors
against libplacebo v6, so it needs to be removed from the code. We can
keep the option around for now, but it should also be removed soon.

Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: James Almer <jamrial@gmail.com>
Gbp-Pq: Name 0004-avfilter-vf_libplacebo-remove-deprecated-field.patch

2 years agoavfilter/vf_libplacebo: wrap deprecated opts in FF_API define
Niklas Haas [Mon, 13 Mar 2023 14:10:26 +0000 (15:10 +0100)]
avfilter/vf_libplacebo: wrap deprecated opts in FF_API define

Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: James Almer <jamrial@gmail.com>
Gbp-Pq: Name 0003-avfilter-vf_libplacebo-wrap-deprecated-opts-in-FF_AP.patch

2 years agoexamples: fix build of mux and resample_audio
Sebastian Ramacher [Sun, 16 Apr 2023 11:39:27 +0000 (13:39 +0200)]
examples: fix build of mux and resample_audio

The commits 0a69ca656b7178c260f68d50d07b2e16a073050c and
cd8211527efbb9cad19db1c0d033da0749836e43 renamed the examples, but the
targets were not updated. Hence, the builds are missing -lm.

Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
Gbp-Pq: Name 0002-examples-fix-build-of-mux-and-resample_audio.patch

2 years agoavcodec/x86/mathops: clip constants used with shift instructions within inline assembly
Rémi Denis-Courmont [Mon, 17 Jul 2023 20:19:33 +0000 (22:19 +0200)]
avcodec/x86/mathops: clip constants used with shift instructions within inline assembly

Fixes assembling with binutil as >= 2.41

Signed-off-by: James Almer <jamrial at gmail.com>
Gbp-Pq: Name 0001-avcodec-x86-mathops-clip-constants-used-with-shift-i.patch

2 years agoffmpeg (7:6.0-7) unstable; urgency=medium
Sebastian Ramacher [Sun, 24 Sep 2023 06:47:33 +0000 (07:47 +0100)]
ffmpeg (7:6.0-7) unstable; urgency=medium

  * debian/: Disable libsvtav1 to unblock transition

[dgit import unpatched ffmpeg 7:6.0-7]

2 years agoImport ffmpeg_6.0-7.debian.tar.xz
Sebastian Ramacher [Sun, 24 Sep 2023 06:47:33 +0000 (07:47 +0100)]
Import ffmpeg_6.0-7.debian.tar.xz

[dgit import tarball ffmpeg 7:6.0-7 ffmpeg_6.0-7.debian.tar.xz]

2 years agoMerge ffmpeg (7:6.0-6) import into refs/heads/workingbranch
Sebastian Ramacher [Wed, 23 Aug 2023 08:24:18 +0000 (09:24 +0100)]
Merge ffmpeg (7:6.0-6) import into refs/heads/workingbranch

2 years agoavfilter/vf_libplacebo: remove deprecated field
Niklas Haas [Mon, 13 Mar 2023 13:33:16 +0000 (14:33 +0100)]
avfilter/vf_libplacebo: remove deprecated field

This has not been functional since a year ago, including in our current
minimum dependency of libplacebo (v4.192.0). It also causes build errors
against libplacebo v6, so it needs to be removed from the code. We can
keep the option around for now, but it should also be removed soon.

Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: James Almer <jamrial@gmail.com>
Gbp-Pq: Name 0004-avfilter-vf_libplacebo-remove-deprecated-field.patch

2 years agoavfilter/vf_libplacebo: wrap deprecated opts in FF_API define
Niklas Haas [Mon, 13 Mar 2023 14:10:26 +0000 (15:10 +0100)]
avfilter/vf_libplacebo: wrap deprecated opts in FF_API define

Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: James Almer <jamrial@gmail.com>
Gbp-Pq: Name 0003-avfilter-vf_libplacebo-wrap-deprecated-opts-in-FF_AP.patch

2 years agoexamples: fix build of mux and resample_audio
Sebastian Ramacher [Sun, 16 Apr 2023 11:39:27 +0000 (13:39 +0200)]
examples: fix build of mux and resample_audio

The commits 0a69ca656b7178c260f68d50d07b2e16a073050c and
cd8211527efbb9cad19db1c0d033da0749836e43 renamed the examples, but the
targets were not updated. Hence, the builds are missing -lm.

Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
Gbp-Pq: Name 0002-examples-fix-build-of-mux-and-resample_audio.patch

2 years agoavcodec/x86/mathops: clip constants used with shift instructions within inline assembly
Rémi Denis-Courmont [Mon, 17 Jul 2023 20:19:33 +0000 (22:19 +0200)]
avcodec/x86/mathops: clip constants used with shift instructions within inline assembly

Fixes assembling with binutil as >= 2.41

Signed-off-by: James Almer <jamrial at gmail.com>
Gbp-Pq: Name 0001-avcodec-x86-mathops-clip-constants-used-with-shift-i.patch

2 years agoffmpeg (7:6.0-6) unstable; urgency=medium
Sebastian Ramacher [Wed, 23 Aug 2023 08:24:18 +0000 (09:24 +0100)]
ffmpeg (7:6.0-6) unstable; urgency=medium

  * debian/libavutils58.symbols: Fix version for avpriv symbols
  * debian/: Enable rav1e on riscv64
  * debian/rules: Build static libraries with PIC enabled

[dgit import unpatched ffmpeg 7:6.0-6]

2 years agoImport ffmpeg_6.0-6.debian.tar.xz
Sebastian Ramacher [Wed, 23 Aug 2023 08:24:18 +0000 (09:24 +0100)]
Import ffmpeg_6.0-6.debian.tar.xz

[dgit import tarball ffmpeg 7:6.0-6 ffmpeg_6.0-6.debian.tar.xz]

3 years agoImport ffmpeg_6.0.orig.tar.xz
Sebastian Ramacher [Sun, 5 Mar 2023 14:47:45 +0000 (14:47 +0000)]
Import ffmpeg_6.0.orig.tar.xz

[dgit import orig ffmpeg_6.0.orig.tar.xz]

3 years agoMerge ffmpeg (7:5.1.2-3) import into refs/heads/workingbranch
Sebastian Ramacher [Fri, 17 Feb 2023 07:26:22 +0000 (07:26 +0000)]
Merge ffmpeg (7:5.1.2-3) import into refs/heads/workingbranch

3 years agohwcontext_vulkan: remove optional encode/decode extensions from the list
Lynne [Sun, 25 Dec 2022 00:03:30 +0000 (01:03 +0100)]
hwcontext_vulkan: remove optional encode/decode extensions from the list

They're not currently used, so they don't need to be there.
Vulkan stabilized the decode extensions less than a week ago, and their
name prefixes were changed from EXT to KHR. It's a bit too soon to be
depending on it, so rather than bumping, just remove these for now.

(cherry picked from commit eb0455d64690eed0068e5cb202f72ecdf899837c)

Gbp-Pq: Name 0001-hwcontext_vulkan-remove-optional-encode-decode-exten.patch

3 years agoffmpeg (7:5.1.2-3) unstable; urgency=medium
Sebastian Ramacher [Fri, 17 Feb 2023 07:26:22 +0000 (07:26 +0000)]
ffmpeg (7:5.1.2-3) unstable; urgency=medium

  * debian/rules: Disable more tests on ppc64 (Closes: #1022764)
  * debian/patches: Add upstream patch to fix FTBFS after vulkan changes
    (Closes: #1031447)

[dgit import unpatched ffmpeg 7:5.1.2-3]

3 years agoImport ffmpeg_5.1.2-3.debian.tar.xz
Sebastian Ramacher [Fri, 17 Feb 2023 07:26:22 +0000 (07:26 +0000)]
Import ffmpeg_5.1.2-3.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1.2-3 ffmpeg_5.1.2-3.debian.tar.xz]

3 years agoMerge ffmpeg (7:5.1.2-2) import into refs/heads/workingbranch
Sebastian Ramacher [Sun, 22 Jan 2023 12:07:50 +0000 (12:07 +0000)]
Merge ffmpeg (7:5.1.2-2) import into refs/heads/workingbranch

3 years agoffmpeg (7:5.1.2-2) unstable; urgency=medium
Sebastian Ramacher [Sun, 22 Jan 2023 12:07:50 +0000 (12:07 +0000)]
ffmpeg (7:5.1.2-2) unstable; urgency=medium

  [ Mathieu Malaterre ]
  * d/control: Add support for JPEG-XL. (Closes: #1023646)

  [ Diederik de Haas ]
  * ci: Enable Salsa's CI

  [ Sebastian Ramacher ]
  * debian/control: Bump Standards-Version

[dgit import unpatched ffmpeg 7:5.1.2-2]

3 years agoImport ffmpeg_5.1.2-2.debian.tar.xz
Sebastian Ramacher [Sun, 22 Jan 2023 12:07:50 +0000 (12:07 +0000)]
Import ffmpeg_5.1.2-2.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1.2-2 ffmpeg_5.1.2-2.debian.tar.xz]

3 years agoImport ffmpeg_5.1.2.orig.tar.xz
Sebastian Ramacher [Sat, 1 Oct 2022 07:57:28 +0000 (08:57 +0100)]
Import ffmpeg_5.1.2.orig.tar.xz

[dgit import orig ffmpeg_5.1.2.orig.tar.xz]

3 years agoMerge ffmpeg (7:5.1.2-1) import into refs/heads/workingbranch
Sebastian Ramacher [Sat, 1 Oct 2022 07:57:28 +0000 (08:57 +0100)]
Merge ffmpeg (7:5.1.2-1) import into refs/heads/workingbranch

3 years agoffmpeg (7:5.1.2-1) unstable; urgency=medium
Sebastian Ramacher [Sat, 1 Oct 2022 07:57:28 +0000 (08:57 +0100)]
ffmpeg (7:5.1.2-1) unstable; urgency=medium

  * New upstream version 5.1.2
  * debian/rules: Fix typo (Closes: #1020273)
  * debian/patches: Remove all patches, all integrated upstream

[dgit import unpatched ffmpeg 7:5.1.2-1]

3 years agoImport ffmpeg_5.1.2-1.debian.tar.xz
Sebastian Ramacher [Sat, 1 Oct 2022 07:57:28 +0000 (08:57 +0100)]
Import ffmpeg_5.1.2-1.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1.2-1 ffmpeg_5.1.2-1.debian.tar.xz]

3 years agoMerge ffmpeg (7:5.1.1-2) import into refs/heads/workingbranch
Sebastian Ramacher [Fri, 16 Sep 2022 21:50:22 +0000 (22:50 +0100)]
Merge ffmpeg (7:5.1.1-2) import into refs/heads/workingbranch

3 years agoslicethread: Limit the automatic number of threads to 16
Martin Storsjö [Mon, 5 Sep 2022 12:17:56 +0000 (15:17 +0300)]
slicethread: Limit the automatic number of threads to 16

This matches a similar cap on the number of automatic threads
in libavcodec/pthread_slice.c.

On systems with lots of cores, this fixes a couple fate failures
in 32 bit mode on such machines (where spawning a huge number of
threads runs out of address space).

Signed-off-by: Martin Storsjö <martin@martin.st>
Gbp-Pq: Name 0002-slicethread-Limit-the-automatic-number-of-threads-to.patch

3 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

3 years agoffmpeg (7:5.1.1-2) unstable; urgency=medium
Sebastian Ramacher [Fri, 16 Sep 2022 21:50:22 +0000 (22:50 +0100)]
ffmpeg (7:5.1.1-2) unstable; urgency=medium

  * debian/rules: Disable filter-overlay_yuv420p10 on all BE architectures
    (Closes: #1019133)
  * debian/: Enable librav1e support
  * debian/patches: Apply upstream patch to limit automatic number of threads
    to 16

[dgit import unpatched ffmpeg 7:5.1.1-2]

3 years agoImport ffmpeg_5.1.1-2.debian.tar.xz
Sebastian Ramacher [Fri, 16 Sep 2022 21:50:22 +0000 (22:50 +0100)]
Import ffmpeg_5.1.1-2.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1.1-2 ffmpeg_5.1.1-2.debian.tar.xz]

3 years agoMerge ffmpeg (7:5.1.1-1) import into refs/heads/workingbranch
Sebastian Ramacher [Sat, 3 Sep 2022 07:46:14 +0000 (08:46 +0100)]
Merge ffmpeg (7:5.1.1-1) import into refs/heads/workingbranch

3 years agoImport ffmpeg_5.1.1.orig.tar.xz
Sebastian Ramacher [Sat, 3 Sep 2022 07:46:14 +0000 (08:46 +0100)]
Import ffmpeg_5.1.1.orig.tar.xz

[dgit import orig ffmpeg_5.1.1.orig.tar.xz]

3 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

3 years agoffmpeg (7:5.1.1-1) unstable; urgency=medium
Sebastian Ramacher [Sat, 3 Sep 2022 07:46:14 +0000 (08:46 +0100)]
ffmpeg (7:5.1.1-1) unstable; urgency=medium

  * New upstream version 5.1.1
  * debian/patches: Remove upstream patches

[dgit import unpatched ffmpeg 7:5.1.1-1]

3 years agoImport ffmpeg_5.1.1-1.debian.tar.xz
Sebastian Ramacher [Sat, 3 Sep 2022 07:46:14 +0000 (08:46 +0100)]
Import ffmpeg_5.1.1-1.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1.1-1 ffmpeg_5.1.1-1.debian.tar.xz]

3 years agoMerge ffmpeg (7:5.1-3) import into refs/heads/workingbranch
Sebastian Ramacher [Wed, 24 Aug 2022 21:33:44 +0000 (22:33 +0100)]
Merge ffmpeg (7:5.1-3) import into refs/heads/workingbranch

3 years agoipfsgateway: Remove default gateway
Derek Buitenhuis [Wed, 10 Aug 2022 22:17:58 +0000 (23:17 +0100)]
ipfsgateway: Remove default gateway

A gateway can see everything, and we should not be shipping a hardcoded
default from a third party company; it's a security risk.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
(cherry picked from commit 412922cc6fa790897ef6bb2be5d6f9a5f030754d)

Gbp-Pq: Name 0007-ipfsgateway-Remove-default-gateway.patch

3 years agofate/lavf-image: Disable file checksums for exr tests
Andreas Rheinhardt [Mon, 1 Aug 2022 12:41:38 +0000 (14:41 +0200)]
fate/lavf-image: Disable file checksums for exr tests

The generated files are endian-dependent, so no checksums
may be part of the ref files.

Fixes ticket #9854.

Tested-by: Sebastian Ramacher <sramacher@debian.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit fe211aebbf2988f7a6588cf9f45277ca74b92763)

Gbp-Pq: Name 0006-fate-lavf-image-Disable-file-checksums-for-exr-tests.patch

3 years agotests/fate-run: Allow to skip file checksums for lavf_image
Andreas Rheinhardt [Mon, 1 Aug 2022 12:24:51 +0000 (14:24 +0200)]
tests/fate-run: Allow to skip file checksums for lavf_image

The output file (even the filesize) of the recently added
EXR tests depends on the endianness; therefore checksums
of these files must not be part of the ref file. Therefore
this commit adds an option (unused for now) to disable these
checksums on a per-test basis.

In order to avoid having to check twice, the checksum and
the filesize info are moved to immediately follow one another;
this results into updates to the ref files of all lavf-image tests.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 4fb8741c4670965eaf1f78d6122c6bdfdf1f3358)

Gbp-Pq: Name 0005-tests-fate-run-Allow-to-skip-file-checksums-for-lavf.patch

3 years agofate/imf: Rename IMF fate-target
Andreas Rheinhardt [Sun, 24 Jul 2022 19:34:58 +0000 (21:34 +0200)]
fate/imf: Rename IMF fate-target

It conflicts with the name of the test using the testtool
in libavformat.mak.

Fixes ticket #9841.

Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 3b923116e5a348945281b8d827074ac8f897464d)

Gbp-Pq: Name 0004-fate-imf-Rename-IMF-fate-target.patch

3 years agoavcodec/alac: don't fail if channels aren't set during init() when extradata is valid
James Almer [Fri, 29 Jul 2022 21:05:51 +0000 (18:05 -0300)]
avcodec/alac: don't fail if channels aren't set during init() when extradata is valid

The decoder is meant to use it as a fallback if the value in extradata is
invalid.

Regression since d199099be.

Signed-off-by: James Almer <jamrial@gmail.com>
Gbp-Pq: Name 0003-avcodec-alac-don-t-fail-if-channels-aren-t-set-durin.patch

3 years agoconfigure: properly require libx264 if enabled
Marvin Scholz [Sun, 24 Jul 2022 10:11:49 +0000 (12:11 +0200)]
configure: properly require libx264 if enabled

When libx264 can not be found even though it is enabled, it should error
out properly instead of silently disabling it.

(cherry picked from commit 564d7946de56155d1c42165a8b561fcf5028cbbc)

Gbp-Pq: Name 0002-configure-properly-require-libx264-if-enabled.patch

3 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

3 years agoffmpeg (7:5.1-3) unstable; urgency=medium
Sebastian Ramacher [Wed, 24 Aug 2022 21:33:44 +0000 (22:33 +0100)]
ffmpeg (7:5.1-3) unstable; urgency=medium

  * debian/: Build with vulkan and libplacebo only on Linux (Closes: #1017108)
  * debian/patches: Add upstream patch to disable default ipfs gateway

[dgit import unpatched ffmpeg 7:5.1-3]

3 years agoImport ffmpeg_5.1-3.debian.tar.xz
Sebastian Ramacher [Wed, 24 Aug 2022 21:33:44 +0000 (22:33 +0100)]
Import ffmpeg_5.1-3.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1-3 ffmpeg_5.1-3.debian.tar.xz]

3 years agoMerge ffmpeg (7:5.1-2) import into refs/heads/workingbranch
Sebastian Ramacher [Tue, 2 Aug 2022 18:27:24 +0000 (19:27 +0100)]
Merge ffmpeg (7:5.1-2) import into refs/heads/workingbranch

3 years agofate/lavf-image: Disable file checksums for exr tests
Andreas Rheinhardt [Mon, 1 Aug 2022 12:41:38 +0000 (14:41 +0200)]
fate/lavf-image: Disable file checksums for exr tests

The generated files are endian-dependent, so no checksums
may be part of the ref files.

Fixes ticket #9854.

Tested-by: Sebastian Ramacher <sramacher@debian.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit fe211aebbf2988f7a6588cf9f45277ca74b92763)

Gbp-Pq: Name 0006-fate-lavf-image-Disable-file-checksums-for-exr-tests.patch

3 years agotests/fate-run: Allow to skip file checksums for lavf_image
Andreas Rheinhardt [Mon, 1 Aug 2022 12:24:51 +0000 (14:24 +0200)]
tests/fate-run: Allow to skip file checksums for lavf_image

The output file (even the filesize) of the recently added
EXR tests depends on the endianness; therefore checksums
of these files must not be part of the ref file. Therefore
this commit adds an option (unused for now) to disable these
checksums on a per-test basis.

In order to avoid having to check twice, the checksum and
the filesize info are moved to immediately follow one another;
this results into updates to the ref files of all lavf-image tests.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 4fb8741c4670965eaf1f78d6122c6bdfdf1f3358)

Gbp-Pq: Name 0005-tests-fate-run-Allow-to-skip-file-checksums-for-lavf.patch

3 years agofate/imf: Rename IMF fate-target
Andreas Rheinhardt [Sun, 24 Jul 2022 19:34:58 +0000 (21:34 +0200)]
fate/imf: Rename IMF fate-target

It conflicts with the name of the test using the testtool
in libavformat.mak.

Fixes ticket #9841.

Reviewed-by: Pierre-Anthony Lemieux <pal@sandflow.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 3b923116e5a348945281b8d827074ac8f897464d)

Gbp-Pq: Name 0004-fate-imf-Rename-IMF-fate-target.patch

3 years agoavcodec/alac: don't fail if channels aren't set during init() when extradata is valid
James Almer [Fri, 29 Jul 2022 21:05:51 +0000 (18:05 -0300)]
avcodec/alac: don't fail if channels aren't set during init() when extradata is valid

The decoder is meant to use it as a fallback if the value in extradata is
invalid.

Regression since d199099be.

Signed-off-by: James Almer <jamrial@gmail.com>
Gbp-Pq: Name 0003-avcodec-alac-don-t-fail-if-channels-aren-t-set-durin.patch

3 years agoconfigure: properly require libx264 if enabled
Marvin Scholz [Sun, 24 Jul 2022 10:11:49 +0000 (12:11 +0200)]
configure: properly require libx264 if enabled

When libx264 can not be found even though it is enabled, it should error
out properly instead of silently disabling it.

(cherry picked from commit 564d7946de56155d1c42165a8b561fcf5028cbbc)

Gbp-Pq: Name 0002-configure-properly-require-libx264-if-enabled.patch

3 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

3 years agoffmpeg (7:5.1-2) unstable; urgency=medium
Sebastian Ramacher [Tue, 2 Aug 2022 18:27:24 +0000 (19:27 +0100)]
ffmpeg (7:5.1-2) unstable; urgency=medium

  * debian/: Fix test failures on s390x (Closes: #1016519)
    * Apply upstream fixes for some s390x test failures
    * Disable one new failing test

[dgit import unpatched ffmpeg 7:5.1-2]

3 years agoImport ffmpeg_5.1-2.debian.tar.xz
Sebastian Ramacher [Tue, 2 Aug 2022 18:27:24 +0000 (19:27 +0100)]
Import ffmpeg_5.1-2.debian.tar.xz

[dgit import tarball ffmpeg 7:5.1-2 ffmpeg_5.1-2.debian.tar.xz]

3 years agoImport ffmpeg_5.1.orig.tar.xz
Sebastian Ramacher [Sun, 31 Jul 2022 18:07:37 +0000 (19:07 +0100)]
Import ffmpeg_5.1.orig.tar.xz

[dgit import orig ffmpeg_5.1.orig.tar.xz]

3 years agoMerge ffmpeg (7:5.0.1-3) import into refs/heads/workingbranch
Sebastian Ramacher [Thu, 23 Jun 2022 09:29:43 +0000 (10:29 +0100)]
Merge ffmpeg (7:5.0.1-3) import into refs/heads/workingbranch

3 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

3 years agoffmpeg (7:5.0.1-3) unstable; urgency=medium
Sebastian Ramacher [Thu, 23 Jun 2022 09:29:43 +0000 (10:29 +0100)]
ffmpeg (7:5.0.1-3) unstable; urgency=medium

  * debian/tests: Update encoders for autopkgtests

[dgit import unpatched ffmpeg 7:5.0.1-3]

3 years agoImport ffmpeg_5.0.1-3.debian.tar.xz
Sebastian Ramacher [Thu, 23 Jun 2022 09:29:43 +0000 (10:29 +0100)]
Import ffmpeg_5.0.1-3.debian.tar.xz

[dgit import tarball ffmpeg 7:5.0.1-3 ffmpeg_5.0.1-3.debian.tar.xz]

3 years agoImport ffmpeg_5.0.1.orig.tar.xz
Sebastian Ramacher [Wed, 6 Apr 2022 09:28:57 +0000 (10:28 +0100)]
Import ffmpeg_5.0.1.orig.tar.xz

[dgit import orig ffmpeg_5.0.1.orig.tar.xz]

4 years agoMerge ffmpeg (7:4.4.1-3) import into refs/heads/workingbranch
Sebastian Ramacher [Sat, 15 Jan 2022 16:49:38 +0000 (16:49 +0000)]
Merge ffmpeg (7:4.4.1-3) import into refs/heads/workingbranch

4 years agoconfigure: arm: Don't add -march= to the compiler if no preference was passed
Martin Storsjö [Mon, 20 Sep 2021 10:00:40 +0000 (13:00 +0300)]
configure: arm: Don't add -march= to the compiler if no preference was passed

If no --cpu= option was passed to configure, we detect what the
compiler defaults to. This detected value was then fed back to the
rest of the configure logic, as if it was an explicit choice.

This breaks on Ubuntu 21.10 with GCC 11.1.

Since GCC 8, it's possible to add configure extra features via the
-march option, like e.g. -march=armv7-a+neon. If the -mfpu= option
is configured to default to 'auto', the fpu setting gets taken
from the -march option.

GCC 11.1 in Ubuntu seems to be configured to use -mfpu=auto. This
has the effect of breaking any compilation command that specifies
-march=armv7-a, because the driver implicitly also adds -mfloat-abi=hard,
and that combination results in this error:

    cc1: error: ‘-mfloat-abi=hard’: selected processor lacks an FPU

Therefore, restructure configure. If no specific preference was set
(and the 'cpu' configure variable was set as the output of
probe_arm_arch), the value we tried to set via -march= was the same
value that we just tried to detect as the compiler default.

So instead, just try to detect what the compiler defaults to, with
to allow setting other configure settings (such as 'fast_unaligned'),
but don't try to spell out the compiler's default via the -march flag.

Signed-off-by: Martin Storsjö <martin@martin.st>
Gbp-Pq: Name 0002-configure-arm-Don-t-add-march-to-the-compiler-if-no-.patch

4 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

4 years agoffmpeg (7:4.4.1-3) unstable; urgency=medium
Sebastian Ramacher [Sat, 15 Jan 2022 16:49:38 +0000 (16:49 +0000)]
ffmpeg (7:4.4.1-3) unstable; urgency=medium

  [ Pino Toscano ]
  * Restrict the clang Build-Depends to amd64 arm64 ppc64el, where CUDA exists.
    (Closes: #994537)

  [ Sebastian Ramacher ]
  * debian/control:
    - Also enable cuda_llvm on i386
    - Suggest packages for nvenc

[dgit import unpatched ffmpeg 7:4.4.1-3]

4 years agoImport ffmpeg_4.4.1-3.debian.tar.xz
Sebastian Ramacher [Sat, 15 Jan 2022 16:49:38 +0000 (16:49 +0000)]
Import ffmpeg_4.4.1-3.debian.tar.xz

[dgit import tarball ffmpeg 7:4.4.1-3 ffmpeg_4.4.1-3.debian.tar.xz]

4 years agoMerge ffmpeg (7:4.4.1-2) import into refs/heads/workingbranch
Sebastian Ramacher [Sun, 21 Nov 2021 17:48:57 +0000 (17:48 +0000)]
Merge ffmpeg (7:4.4.1-2) import into refs/heads/workingbranch

4 years agoconfigure: arm: Don't add -march= to the compiler if no preference was passed
Martin Storsjö [Mon, 20 Sep 2021 10:00:40 +0000 (13:00 +0300)]
configure: arm: Don't add -march= to the compiler if no preference was passed

If no --cpu= option was passed to configure, we detect what the
compiler defaults to. This detected value was then fed back to the
rest of the configure logic, as if it was an explicit choice.

This breaks on Ubuntu 21.10 with GCC 11.1.

Since GCC 8, it's possible to add configure extra features via the
-march option, like e.g. -march=armv7-a+neon. If the -mfpu= option
is configured to default to 'auto', the fpu setting gets taken
from the -march option.

GCC 11.1 in Ubuntu seems to be configured to use -mfpu=auto. This
has the effect of breaking any compilation command that specifies
-march=armv7-a, because the driver implicitly also adds -mfloat-abi=hard,
and that combination results in this error:

    cc1: error: ‘-mfloat-abi=hard’: selected processor lacks an FPU

Therefore, restructure configure. If no specific preference was set
(and the 'cpu' configure variable was set as the output of
probe_arm_arch), the value we tried to set via -march= was the same
value that we just tried to detect as the compiler default.

So instead, just try to detect what the compiler defaults to, with
to allow setting other configure settings (such as 'fast_unaligned'),
but don't try to spell out the compiler's default via the -march flag.

Signed-off-by: Martin Storsjö <martin@martin.st>
Gbp-Pq: Name 0002-configure-arm-Don-t-add-march-to-the-compiler-if-no-.patch

4 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

4 years agoffmpeg (7:4.4.1-2) unstable; urgency=medium
Sebastian Ramacher [Sun, 21 Nov 2021 17:48:57 +0000 (17:48 +0000)]
ffmpeg (7:4.4.1-2) unstable; urgency=medium

  * debian/control: Add Build-Depends on libffmpeg-nvenc-dev on amd64, arm64
    and i386 (Closes: #925941)

[dgit import unpatched ffmpeg 7:4.4.1-2]

4 years agoImport ffmpeg_4.4.1-2.debian.tar.xz
Sebastian Ramacher [Sun, 21 Nov 2021 17:48:57 +0000 (17:48 +0000)]
Import ffmpeg_4.4.1-2.debian.tar.xz

[dgit import tarball ffmpeg 7:4.4.1-2 ffmpeg_4.4.1-2.debian.tar.xz]

4 years agoImport ffmpeg_4.4.1.orig.tar.xz
Sebastian Ramacher [Thu, 28 Oct 2021 19:43:55 +0000 (20:43 +0100)]
Import ffmpeg_4.4.1.orig.tar.xz

[dgit import orig ffmpeg_4.4.1.orig.tar.xz]

4 years agoMerge ffmpeg (7:4.4.1-1) import into refs/heads/workingbranch
Sebastian Ramacher [Thu, 28 Oct 2021 19:43:55 +0000 (20:43 +0100)]
Merge ffmpeg (7:4.4.1-1) import into refs/heads/workingbranch

4 years agoconfigure: arm: Don't add -march= to the compiler if no preference was passed
Martin Storsjö [Mon, 20 Sep 2021 10:00:40 +0000 (13:00 +0300)]
configure: arm: Don't add -march= to the compiler if no preference was passed

If no --cpu= option was passed to configure, we detect what the
compiler defaults to. This detected value was then fed back to the
rest of the configure logic, as if it was an explicit choice.

This breaks on Ubuntu 21.10 with GCC 11.1.

Since GCC 8, it's possible to add configure extra features via the
-march option, like e.g. -march=armv7-a+neon. If the -mfpu= option
is configured to default to 'auto', the fpu setting gets taken
from the -march option.

GCC 11.1 in Ubuntu seems to be configured to use -mfpu=auto. This
has the effect of breaking any compilation command that specifies
-march=armv7-a, because the driver implicitly also adds -mfloat-abi=hard,
and that combination results in this error:

    cc1: error: ‘-mfloat-abi=hard’: selected processor lacks an FPU

Therefore, restructure configure. If no specific preference was set
(and the 'cpu' configure variable was set as the output of
probe_arm_arch), the value we tried to set via -march= was the same
value that we just tried to detect as the compiler default.

So instead, just try to detect what the compiler defaults to, with
to allow setting other configure settings (such as 'fast_unaligned'),
but don't try to spell out the compiler's default via the -march flag.

Signed-off-by: Martin Storsjö <martin@martin.st>
Gbp-Pq: Name 0002-configure-arm-Don-t-add-march-to-the-compiler-if-no-.patch

4 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

4 years agoffmpeg (7:4.4.1-1) unstable; urgency=medium
Sebastian Ramacher [Thu, 28 Oct 2021 19:43:55 +0000 (20:43 +0100)]
ffmpeg (7:4.4.1-1) unstable; urgency=medium

  * New upstream version 4.4.1
  * debian/tests: Limit the number of threads to max of 8
  * debian/patches: Apply upstream patch to fix build on armhf with GCC 11

[dgit import unpatched ffmpeg 7:4.4.1-1]

4 years agoImport ffmpeg_4.4.1-1.debian.tar.xz
Sebastian Ramacher [Thu, 28 Oct 2021 19:43:55 +0000 (20:43 +0100)]
Import ffmpeg_4.4.1-1.debian.tar.xz

[dgit import tarball ffmpeg 7:4.4.1-1 ffmpeg_4.4.1-1.debian.tar.xz]

4 years agoMerge ffmpeg (7:4.4-6) import into refs/heads/workingbranch
Sebastian Ramacher [Thu, 9 Sep 2021 20:45:41 +0000 (21:45 +0100)]
Merge ffmpeg (7:4.4-6) import into refs/heads/workingbranch

4 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

4 years agoffmpeg (7:4.4-6) unstable; urgency=medium
Sebastian Ramacher [Thu, 9 Sep 2021 20:45:41 +0000 (21:45 +0100)]
ffmpeg (7:4.4-6) unstable; urgency=medium

  * debian/*.symbols: Bump version of symbols to match upstream release
  * debian/ffmpeg.maintscript: Drop removal of old conffile

[dgit import unpatched ffmpeg 7:4.4-6]

4 years agoImport ffmpeg_4.4-6.debian.tar.xz
Sebastian Ramacher [Thu, 9 Sep 2021 20:45:41 +0000 (21:45 +0100)]
Import ffmpeg_4.4-6.debian.tar.xz

[dgit import tarball ffmpeg 7:4.4-6 ffmpeg_4.4-6.debian.tar.xz]

4 years agoavcodec/arm/sbcenc: avoid callee preserved vfp registers
James Cowgill [Sun, 11 Aug 2019 15:50:56 +0000 (16:50 +0100)]
avcodec/arm/sbcenc: avoid callee preserved vfp registers

When compiling FFmpeg with GCC-9, some very random segfaults were
observed in code which had previously called down into the SBC encoder
NEON assembly routines. This was caused by these functions clobbering
some of the vfp callee saved registers (d8 - d15 aka q4 - q7). GCC was
using these registers to save local variables, but after these
functions returned, they would contain garbage.

Fix by reallocating the registers in the two affected functions in
the following way:
 ff_sbc_analyze_4_neon: q2-q5 => q8-q11, then q1-q4 => q8-q11
 ff_sbc_analyze_8_neon: q2-q9 => q8-q15

The reason for using these replacements is to keep closely related
sets of registers consecutively numbered which hopefully makes the
code more easy to follow. Since this commit only reallocates
registers, it should have no performance impact.

Signed-off-by: James Cowgill <jcowgill@debian.org>
Gbp-Pq: Name 0001-avcodec-arm-sbcenc-avoid-callee-preserved-vfp-regist.patch

4 years agoffmpeg (7:4.4-5) unstable; urgency=medium
Sebastian Ramacher [Sun, 22 Aug 2021 12:34:35 +0000 (13:34 +0100)]
ffmpeg (7:4.4-5) unstable; urgency=medium

  * Upload to unstable
  * debian/control: Bump Standards-Version

[dgit import unpatched ffmpeg 7:4.4-5]

4 years agoImport ffmpeg_4.4-5.debian.tar.xz
Sebastian Ramacher [Sun, 22 Aug 2021 12:34:35 +0000 (13:34 +0100)]
Import ffmpeg_4.4-5.debian.tar.xz

[dgit import tarball ffmpeg 7:4.4-5 ffmpeg_4.4-5.debian.tar.xz]

4 years agoImport ffmpeg_4.4.orig.tar.xz
Sebastian Ramacher [Sun, 11 Apr 2021 13:09:21 +0000 (14:09 +0100)]
Import ffmpeg_4.4.orig.tar.xz

[dgit import orig ffmpeg_4.4.orig.tar.xz]